<!DOCTYPE HTML>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>项目合并</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="icon" type="image/x-icon" href="/cctv/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="/cctv/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="/cctv/css/project/comview.css"/>
    <script type="text/javascript" src="/cctv/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="/cctv/layui/layui-2.5.6.min.js"></script>
    <script type="text/javascript" src="/cctv/js/project/comview.js"></script>
</head>
<body>
<div th:replace="navigation::navigation"></div>

<div id="main">
    <div id="mainTop">数据合并</div>
    <form id="form1" action="compipe" method="post">
        <div id="mainCenter">
            <div th:each="project:${projects}">
                <div class="title" th:text="${'[' + project.name + '] - ' + project.date}"></div>
                <table class="table" th:id="${project.id}">
                    <thead>
                    <tr style="height: 35px;">
                        <th style="width: 35px;"></th>
                        <th style="width: 35px;">No</th>
                        <th style="width: 240px;">Start MH</th>
                        <th style="width: 240px;">Finish MH</th>
                        <th style="width: 120px;">Date</th>
                        <th style="width: 120px;">Time</th>
                        <th>Video No</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="pipe:${project.pipes}">
                        <td style="width: 35px;"><input type="checkbox"/></td>
                        <td style="width: 35px;" th:text="${pipe.no}"></td>
                        <td style="width: 240px;">
                            <div style="width: 245px" th:text="${pipe.smanholeno}"></div>
                        </td>
                        <td style="width: 240px;">
                            <div style="width: 245px" th:text="${pipe.fmanholeno}"></div>
                        </td>
                        <td style="width: 120px;" th:text="${pipe.date}"></td>
                        <td style="width: 120px;" th:text="${pipe.time}"></td>
                        <td>
                            <div style="width: 150px" th:text="${pipe.videono}"></div>
                        </td>
                        <td style="display: none">
                            <input type="hidden" name="id" th:value="${pipe.id}"/>
                            <input type="hidden" name="no" th:value="${pipe.no}"/>
                            <input type="hidden" name="master" th:value="${project.id}"/>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </form>
    <input id="btn1" type="button" value="确定"/>
    <span id="span">註：鼠標按鈕管道可以將管道拖拽到其他項目中，選擇管道復選框可以實現一次拖拽多個管道！</span>
</div>

<div style="width:100%;margin:20px 0;color:#ccc;text-align:center;font-size:14px;float:left;">
    <p style="line-height: 20px;margin: 10px 0;">香港麦斯迪埃高科技有限责任公司</p>
    <p style="line-height: 20px;margin: 10px 0;">Copyright © 2017 All Rights Reserved</p>
</div>
</body>
</html>